﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>联合国工业发展组织国际工业分包与合作交流(SPX)西安中心</title>
<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
 <link href="css/form.css"  rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/spx.js"></script>
</head>

<body>
<form id="form2"  runat="server">
<div class="wraper">
  <h1>零部件资源库<a href="ComponentsIntro.aspx" class="btnlink radius" style="float:right; margin-top:15px;">加入零部件库</a></h1>
  <div style="padding-bottom:10px;"><span>当前位置：<asp:SiteMapPath ID="SiteMapPath1" target="_blank" runat="server"  OnItemDataBound="SiteMapPath1_ItemDataBound"/></span></div>
<div id="c4">
  <div class="tabs zyk radius shadow" id="tree" >
    
    <table>
            <tr>
             
                <td valign="top" width="230px">
                                    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="1" MultiPageID="RadMultiPage1"
                                        Width="230px"  OnTabClick="RadTabStrip1_TabClick"  Skin="Vista">
                                        <Tabs>
                                            <telerik:RadTab  Text="类别" CssClass="tad"  Width="110px" Value="Category">
                                            </telerik:RadTab>
                                            <telerik:RadTab  Text="供应商" Width="110px" Value="Vendor">
                                            </telerik:RadTab>
                                        </Tabs>
                                    </telerik:RadTabStrip>
                                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="1" >
                                        <telerik:RadPageView ID="RadPageView1" runat="server" Width="30px">
                                            <telerik:RadDockZone ID="rdzNavigator" runat="server" Height="680px" Width="210px" BorderStyle="None">
                                                <telerik:RadDock ID="rdSearchKey" runat="server"  Height="680px" DefaultCommands="ExpandCollapse"
                                                    BorderStyle="None" CloseText="关闭" CollapseText="收起" ExpandText="展开" DockHandle="None"
                                                    Collapsed="false" Resizable="true" Pinned="true" EnableDrag="false">
                                                    <ContentTemplate>
                                                        <telerik:RadTreeView ID="treeView_Category" runat="server" OnNodeClick="treeView_Category_AfterSelect" Skin="Vista">
                                                        </telerik:RadTreeView>
                                                    </ContentTemplate>
                                                </telerik:RadDock>
                                            </telerik:RadDockZone>
                                        </telerik:RadPageView>
                                        <telerik:RadPageView ID="RadPageView2" runat="server"  Width="30px">
                                            <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="680px" Width="210px" BorderStyle="None">
                                                <telerik:RadDock ID="RadDock2" runat="server" Height="680px" DefaultCommands="ExpandCollapse"
                                                    BorderStyle="None" CloseText="关闭" CollapseText="收起" ExpandText="展开" DockHandle="None"
                                                    Collapsed="false" Resizable="true" Pinned="true" EnableDrag="false">
                                                    <ContentTemplate>
                                                        <telerik:RadTreeView ID="treeView_Vendor" runat="server" OnNodeClick="treeView_Vendor_AfterSelect" Skin="Vista">
                                                            <DataBindings>
                                                                <telerik:RadTreeNodeBinding TextField="Name" ImageUrl="../images/SAClient/favicon.ico" />
                                                            </DataBindings>
                                                        </telerik:RadTreeView>
                                                    </ContentTemplate>
                                                </telerik:RadDock>
                                            </telerik:RadDockZone>
                                        </telerik:RadPageView>
                                    </telerik:RadMultiPage>
                               
                </td>
                </tr>
                </table>
  </div>
</div>
  <div id="c5">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="treeView_Category">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="treeView_Category" />
                    <telerik:AjaxUpdatedControl ControlID="listView_Families"  LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="treeView_Vendor">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="treeView_Vendor" />
                    <telerik:AjaxUpdatedControl ControlID="listView_Families"  LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
      <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
      <div class="xx-box radius" id="bar" >
      <table border="0" cellspacing="5" cellpadding="0">
        <tr>
          <td  class="tit">零部件搜索</td>
          <td>
              <asp:TextBox ID="textBox_Search"  CssClass="input-text" runat="server"></asp:TextBox>
         </td>
          <td>
              <asp:Button ID="button_Search"  CssClass="btn-submit" runat="server" Text="搜索" OnClick="button_Search_Click" />
          </td>
        </tr>
      </table>
     
    </div>
    <div class="xx-box radius"> <h3><strong>零部件列表</strong></h3>
      <div class="lbj-list">
       
       <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
                                    <telerik:RadListView runat="server" ID="listView_Families" AllowPaging="true"   AllowSorting="true" OnNeedDataSource="listView_Families_NeedDataSource" 
                                        DataKeyNames="Id" OverrideDataSourceControlSorting="true"  ItemPlaceholderID="Panel1"  >
                                        <LayoutTemplate>
                                        <asp:Panel ID="Panel1" runat="server" />
                                            <table cellpadding="0" cellspacing="0" width="680px">
                                                <tr>
                                                    <td>
                                                        <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="listView_Families" Skin="Vista"
                                                            PageSize="20">
                                                            <Fields>
                                                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                                                <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
                                                                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                                                <telerik:RadDataPagerTemplatePageField>
                                                                    <PagerTemplate>
                                                                        <div style="float: right; margin-left:100px">
                                                                            <b>Items
                                                                                <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                                                                to
                                                                                <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" />
                                                                                of
                                                                                <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                                                            </b>
                                                                        </div>
                                                                    </PagerTemplate>
                                                                </telerik:RadDataPagerTemplatePageField>

                                                            </Fields>
                                                        </telerik:RadDataPager>
                                                    </td>
                                                </tr>
                                            </table>
                                    </LayoutTemplate>
                                        <ItemTemplate>
                                            <div style="float: left;   position: relative; background: write; padding-left:10px;padding-right:10px"
                                                class="myClass" >
                                                <telerik:RadBinaryImage Style="cursor: pointer; display: block;" runat="server" ID="RadBinaryImage1"
                                                    DataValue='<%#Eval("ImageByte") %>' Height='<%#ImageHeight %>' Width="<%#ImageWidth %>"
                                                    ResizeMode="Fit" onclick="<%#CreateWindowScript(Container.DataItem) %>" AlternateText='<%#Bind("Name") %>'
                                                    ToolTip='<%#Bind("Name") %>' />
                                                        <asp:LinkButton ID="Label1" runat="server" Text='<%#TruncateWithEllipsis(Eval("Name").ToString(),11) %>'  Width="120px" Height="30px"
                                                         ForeColor="#1E8EFF" CssClass="linkSytle"  Font-Size="12px" OnClick="<%#CreateWindowScript( Container.DataItem) %>"></asp:LinkButton><br />
                                                <asp:Label ID="Label4" runat="server" Text='<%# "发布时间："+Eval("PublishDate","{0:yyyy-MM-dd}") %>' Width="120px" Height="30px"
                                                         ForeColor="#999999" CssClass="linkSytle"  Font-Size="12px"></asp:Label>
                                            </div>
                                              
                                        </ItemTemplate>
                                        <AlternatingItemTemplate>
                                            <div style="float: left;  position: relative; background: write;padding-left:10px; padding-right:10px"
                                                class="myClass"">
                                                <telerik:RadBinaryImage Style="cursor: pointer; display: block;" runat="server" ID="RadBinaryImage1"
                                                    DataValue='<%#Eval("ImageByte") %>' Height='<%#ImageHeight %>' Width="<%#ImageWidth %>"
                                                    ResizeMode="Fit" onclick="<%#CreateWindowScript( Container.DataItem) %>" AlternateText='<%#Bind("Name") %>'
                                                    ToolTip='<%#Bind("Name") %>' />
                                            <asp:LinkButton ID="Label2" runat="server" Text='<%#TruncateWithEllipsis(Eval("Name").ToString(),11) %>' Font-Size="12px" Width="120px" Height="30px" ForeColor="#1E8EFF" CssClass="linkSytle" OnClick="<%#CreateWindowScript( Container.DataItem) %>"></asp:LinkButton><br />
                                            <asp:Label ID="Label4" runat="server" Text='<%# "发布时间："+Eval("PublishDate","{0:yyyy-MM-dd}") %>' Width="120px" Height="30px"
                                                         ForeColor="#999999" CssClass="linkSytle"  Font-Size="12px"></asp:Label>
                                            </div>
                                        </AlternatingItemTemplate>
                                        <EmptyDataTemplate>
                                           <table id="Table1" runat="server" style="">
                                                 <tr><td>没有此零部件.</td></tr>
                                              </table>
                                        </EmptyDataTemplate>
                                    </telerik:RadListView>
                                    </telerik:RadAjaxPanel>
       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" ></telerik:RadAjaxLoadingPanel>
      </div>
    </div>
    </telerik:RadDockLayout>
    </div>
  
</div><!-- #BeginLibraryItem "/footer.lbi" -->


</form>
</body>
</html>
